package com.zhentao.product.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.nlz.project.product.TUserInfo;
import com.zhentao.nlz.project.product.vo.UserVo;
import com.zhentao.product.mapper.TUserInfoMapper;
import com.zhentao.product.service.TUserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 不.凌
* @description 针对表【t_user_info】的数据库操作Service实现
* @createDate 2024-09-22 21:09:18
*/
@Service
public class TUserInfoServiceImpl extends ServiceImpl<TUserInfoMapper, TUserInfo>
    implements TUserInfoService{
    @Autowired
    private TUserInfoMapper userInfoMapper;

    @Override
    public List<TUserInfo> getUserInfo(UserVo userInfoVo) {
        Page<TUserInfo> page = new Page<>(userInfoVo.getPageNum(), userInfoVo.getPageSize());
        LambdaQueryWrapper<TUserInfo> wrapper = new LambdaQueryWrapper<>();
        List<TUserInfo> tUserInfos = userInfoMapper.selectList(page,wrapper);
        System.err.println(tUserInfos);

        return tUserInfos;
    }
}




